package org.co.service.impl;

import org.apache.ibatis.session.SqlSession;
import org.co.mapper.StudentMapper;
import org.co.model.Student;
import org.co.utils.MybatisUtils;

import java.util.List;

public class SelectStudentByIdImpl {
    static SqlSession sqlSession;

    static {
        sqlSession = MybatisUtils.getSqlSession();
    }

    public List<Student> selectStudentById(Integer id) {
        return sqlSession.getMapper(StudentMapper.class).selectStudentById(id);
    }
}
